import request from "@/common/js/request.js"

export default {
	//查询分类与标签接口
	getCategoryList() {
		return request({
			url: '/article/api/category/label/list'
		})
	},
	//获取指定位置的广告信息
	getAdvertList(position = 1) {
		return request({
			url: `/article/api/advert/show/${position}`, //反单引号
			method:'GET'
		})
	},
	// 分页条件查询课程列表
	getList(query, current = 1, size = 20) {
		return request({
			url: '/course/api/course/search',
			method: 'POST',
			data: {
				...query,
				current,
				size
			}
		})
	}
}